package com.example.Controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class IndexController {
    @RequestMapping(value = {"/", "/{path:^(?!api|static).*$}/**/{path1}/**", "/{path:^(?!api|static).*$}/**"})
    public String index() {
        return "forward:/static/index.html";
    }
}